﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;

namespace Aviproj
{
    public class BundleConfig
    {

        public static void RegisterBundles(BundleCollection bundles)
        {
            

            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                    "~/js/jquery-1.7.1.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                    "~/js/jquery-ui-jquery-ui-1.8.20.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                    "~/js/jquery.unobtrusive*",
                    "~/js/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include(
                  "~/js/WebForms/WebForms.js",
                  "~/js/WebForms/WebUIValidation.js",
                  "~/js/WebForms/MenuStandards.js",
                  "~/js/WebForms/Focus.js",
                  "~/js/WebForms/GridView.js",
                  "~/js/WebForms/DetailsView.js",
                  "~/js/WebForms/TreeView.js",
                  "~/js/WebForms/WebParts.js"));

            bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include(
                "~/js/WebForms/MsAjax/MicrosoftAjax.js",
                "~/js/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js",
                "~/js/WebForms/MsAjax/MicrosoftAjaxTimer.js",
                "~/js/WebForms/MsAjax/MicrosoftAjaxWebForms.js"));

            // Use la versión de desarrollo de Modernizr para desarrollar y aprender. Luego, cuando esté listo
            // para la producción, use la herramienta de creación en http://modernizr.com para elegir solo las pruebas que necesite
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                "~/js/modernizr-*"));

            BundleTable.EnableOptimizations = true;
        }
    }
}